package com.nursebetty.server.service.impl;

import java.util.List;

import com.nursebetty.server.common.UserProfile;
import com.nursebetty.server.dao.WeightLostDao;
import com.nursebetty.server.model.WeightLost;
import com.nursebetty.server.service.WeightLostService;

public class WeightLostServiceImpl implements WeightLostService {

	private WeightLostDao weightLostDao;

	@Override
	public WeightLostDao getWeightLostDao() {
		return weightLostDao;
	}

	@Override
	public void setWeightLostDao(WeightLostDao weightLostDao) {
		this.weightLostDao = weightLostDao;
	}

	public List<WeightLost> getResults(UserProfile weightLost) {

		return weightLostDao.getResults(weightLost);
	}

	public String saveResults(WeightLost weightLost, UserProfile user, String Result) {
		return weightLostDao.saveResults(weightLost, user, Result);

	}

	public void saveWeightLost(UserProfile user, WeightLost weightLost) {
		weightLostDao.saveWeightLost(user, weightLost);
	}

}
